package com.zsrt.designmodel.ch04.demo025;

public class ConcreteBingFactory implements BingFactory {

	@Override
	public Gun createGun(int type) {
		
		Gun gun = null;
		if(1== type){
			gun= new AK47();
		}else if(2== type){
			gun =new C56();
		}
		return gun;
	}

	@Override
	public ZD createZD(int type) {
		ZD zd  = null;
		if(1== type){
			zd = new AK47ZD();
		}else if(2== type){
			zd = new C56ZD();
		}
		return zd;
	}

}
